package com.wanxi.springboot.team.manage.system.controller;


import com.wanxi.springboot.team.manage.system.api.CommonResult;
import com.wanxi.springboot.team.manage.system.model.UserLikes;
import com.wanxi.springboot.team.manage.system.service.UserLikesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
@RestController
@RequestMapping("/userLikes")
public class UserLikesController {

    @Autowired
    UserLikesService userLikesService;

    @PostMapping("/updateUserLike")
    public CommonResult updateUserLike(@RequestBody UserLikes userLikes){
        return userLikesService.updateUserLike(userLikes);
    }
}
